package study.produceOrConsume;

public class Store {
	public static final int MIN_PRODUCT = 0;//最少生产的产品
	public static final int MAX_PRODUCT = 3;//最多生产的产品
	public static int product=0;
	public  static void operate(String oper)
	{
		if( oper.equals("jiajia") )
			product++;
		else if( oper.equals("jianjian") )
			product--;
	}
	public  static void jiajia()
	{
		product++;
	}
	public  static void jianjian()
	{
		product--;
	}
	public  static int getProduct(){
		return product;
	}
}
